Resize
(c) Tollside Ltd 1999




OVERVIEW:

Resize is a 32 bit Active X Control (OCX file) which can be incorporated into the development of your programs to get round the problem of users with different screen resolutions.

Windows allows a number of different screen resolutions to be used coupled to the problem of the user selecting small fonts or large fonts on the display, and not forgetting problems caused by the Microsoft Office Toolbar

The problem for the developer is that he develops on one machine with particular screen settings.  The program looks perfect when tested, but on a screen with a different resolution it can look smaller or larger.
If the program was developed using large fonts setting and the user has small fonts set, the end result looks ridiculous.

If the Microsoft Office Toolbar is present, the Form Container will resize automatically, but the controls will not, which sometimes means that parts of them such as scrollbars are not visible.

How do you find out if the Microsoft Toolbar is there and what do you do about it?  How do you find out if the user has small or large fonts set?

Resize automatically scales all controls and forms to the correct size for the user's work area so that the program always looks the same as when it was developed.


OPERATION:

To use the control in your project click on Project in the Menu.  Click on Components and select Browse.  Select RESIZE.OCX from the directory you copied it into and press Open. Press OK to close the Components form.  The Resize control will now be visible in the toolbox. Double click on it to place it on the form.


PROPERTIES:

There are three properties which need to be set - the first two are 'anchor' references so that the original size of the development screen is known.



WidthX - this must be set to your current development screen width in twips.  You can find this out with:

MsgBox Screen.Width

Default is 12000 twips

DO NOT USE CODE IN YOUR PROGRAM TO WRITE TO THIS PROPERTY FROM THE SCREEN WIDTH - THERE WILL BE NO RESIZING IF YOU DO!!





HeightY - this must be set to your current development screen height in twips.  You can find this out with:

MsgBox Screen.Height

Default is 9000 twips

DO NOT USE CODE IN YOUR PROGRAM TO WRITE TO THIS PROPERTY FROM THE SCREEN HEIGHT - THERE WILL BE NO RESIZING IF YOU DO!!



FontN - when controls are resized the font size has to change as well otherwise captions on them can look rather cramped, especially Command Buttons.  If you have used a font which is not fully scaleable, then this may cause these sort of problems.  I would recommend Arial for the best results.

If you enter a font name into FontN it will set all controls to that font.  If you leave it blank it will leave font names as they are.


On the Form Load Event for that form enter the following code:

Resize1.ResizeControls


This procedure must be repeated for all forms in your project


When you run your program you should see no difference (apart from a registration message) since the 'anchor' coordinates are the same as your screen area.  Try changing screen resolution or hide or invoke the Microsoft Office Toolbar and see how this is dealt with.  Run it on another machine with a smaller screen size e.g. a notebook



PROBLEMS / SUPPORT:

Email tollside@yahoo.com



REGISTRATION:

The registered version does not have the shareware message box and may be distributed by registered authors in their own aplications.

The registration fee is US $10 on line - this is for ALL THREE controls

You can register securely on line using 

https://www.swreg.org/soft_shop/303/shopscr15.shtml
You can also write to:

Tollside Ltd
'Temeraire'
Beckfords
Upper Basildon
Reading
Berks
England
RG8 8PE



DISCLAIMER

Resize is supplied on an 'as is' basis and Tollside Ltd accept no responsibility or liability for any losses arising out of its use or installation